<template>
    <!-- 商品排行 -->
    <div class="py-container tabbox">
        <div class="py-container tab">
            <div class="tab-tit" style="text-align:center">
                <a href="javascript:;" class="on">
                    <p class="img">
                        <i></i>
                    </p>
                    <p class="text">热卖排行</p>
                </a>
                <a href="javascript:;">
                    <p class="img">
                        <i></i>
                    </p>
                    <p class="text">特价排行</p>
                </a>
                <a href="javascript:;">
                    <p class="img">
                        <i></i>
                    </p>
                    <p class="text">新品排行</p>
                </a>
            </div>

        </div>
        <div class="content">
            <ul>
                <li style="display:block;">
                    <div class="img-item">
                        <p class="tab-pic">
                            <span>
                                <a href="#">
                                    <img src="./img/1.jpg" />
                                </a>
                            </span>
                        </p>
                        <div class="tab-info">
                            <div class="info-title">
                                <span>
                                    <a href="#">【官网价直降1100】Apple iPhone 8 Plus 256GB 银色 移动联通电信4G手机</a>
                                </span>
                            </div>
                            <p class="info-price">定金：¥100.00</p>
                        </div>
                    </div>
                    <div class="img-item">
                        <p class="tab-pic">
                            <span>
                                <a href="#">
                                    <img src="./img/1.jpg" />
                                </a>
                            </span>
                        </p>
                        <div class="tab-info">
                            <div class="info-title">
                                <span>
                                    <a href="#">【官网价直降1100】Apple iPhone 8 Plus 256GB 银色 移动联通电信4G手机</a>
                                </span>
                            </div>
                            <p class="info-price">定金：¥100.00</p>
                        </div>
                    </div>
                    <div class="img-item">
                        <p class="tab-pic">
                            <span>
                                <a href="#">
                                    <img src="./img/1.jpg" />
                                </a>
                            </span>
                        </p>
                        <div class="tab-info">
                            <div class="info-title">
                                <span>
                                    <a href="#">【官网价直降1100】Apple iPhone 8 Plus 256GB 银色 移动联通电信4G手机</a>
                                </span>
                            </div>
                            <p class="info-price">定金：¥100.00</p>
                        </div>
                    </div>
                    <div class="img-item">
                        <p class="tab-pic">
                            <span>
                                <a href="#">
                                    <img src="./img/1.jpg" />
                                </a>
                            </span>
                        </p>
                        <div class="tab-info">
                            <div class="info-title">
                                <span>
                                    <a href="#">【官网价直降1100】Apple iPhone 8 Plus 256GB 银色 移动联通电信4G手机</a>
                                </span>
                            </div>
                            <p class="info-price">定金：¥100.00</p>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="img-item">
                        <p class="tab-pic">
                            <span>
                                <a href="#">
                                    <img src="./img/2.jpg" />
                                </a>
                            </span>
                        </p>
                        <div class="tab-info">
                            <div class="info-title">
                                <span>
                                    <a href="#">【官网价直降1100】Apple iPhone 8 Plus 256GB 银色 移动联通电信4G手机</a>
                                </span>
                            </div>
                            <p class="info-price">定金：¥100.00</p>
                        </div>
                    </div>
                    <div class="img-item">
                        <p class="tab-pic">
                            <span>
                                <a href="#">
                                    <img src="./img/1.jpg" />
                                </a>
                            </span>
                        </p>
                        <div class="tab-info">
                            <div class="info-title">
                                <span>
                                    <a href="#">【官网价直降1100】Apple iPhone 8 Plus 256GB 银色 移动联通电信4G手机</a>
                                </span>
                            </div>
                            <p class="info-price">定金：¥100.00</p>
                        </div>
                    </div>
                    <div class="img-item">
                        <p class="tab-pic">
                            <span>
                                <a href="#">
                                    <img src="./img/1.jpg" />
                                </a>
                            </span>
                        </p>
                        <div class="tab-info">
                            <div class="info-title">
                                <span>
                                    <a href="#">【官网价直降1100】Apple iPhone 8 Plus 256GB 银色 移动联通电信4G手机</a>
                                </span>
                            </div>
                            <p class="info-price">定金：¥100.00</p>
                        </div>
                    </div>
                    <div class="img-item">
                        <p class="tab-pic">
                            <span>
                                <a href="#">
                                    <img src="./img/2.jpg" />
                                </a>
                            </span>
                        </p>
                        <div class="tab-info">
                            <div class="info-title">
                                <span>
                                    <a href="#">【官网价直降1100】Apple iPhone 8 Plus 256GB 银色 移动联通电信4G手机</a>
                                </span>
                            </div>
                            <p class="info-price">定金：¥100.00</p>
                        </div>
                    </div>

                </li>
                <li>
                    <div class="img-item">
                        <p class="tab-pic">
                            <span>
                                <a href="#">
                                    <img src="./img/1.jpg" />
                                </a>
                            </span>
                        </p>
                        <div class="tab-info">
                            <div class="info-title">
                                <span>
                                    <a href="#">【官网价直降1100】Apple iPhone 8 Plus 256GB 银色 移动联通电信4G手机</a>
                                </span>
                            </div>
                            <p class="info-price">定金：¥100.00</p>
                        </div>
                    </div>
                    <div class="img-item">
                        <p class="tab-pic">
                            <span>
                                <a href="#">
                                    <img src="./img/1.jpg" />
                                </a>
                            </span>
                        </p>
                        <div class="tab-info">
                            <div class="info-title">
                                <span>
                                    <a href="#">【官网价直降1100】Apple iPhone 8 Plus 256GB 银色 移动联通电信4G手机</a>
                                </span>
                            </div>
                            <p class="info-price">定金：¥100.00</p>
                        </div>
                    </div>
                    <div class="img-item">
                        <p class="tab-pic">
                            <span>
                                <a href="#">
                                    <img src="./img/1.jpg" />
                                </a>
                            </span>
                        </p>
                        <div class="tab-info">
                            <div class="info-title">
                                <span>
                                    <a href="#">【官网价直降1100】Apple iPhone 8 Plus 256GB 银色 移动联通电信4G手机</a>
                                </span>
                            </div>
                            <p class="info-price">定金：¥100.00</p>
                        </div>
                    </div>
                    <div class="img-item">
                        <p class="tab-pic">
                            <span>
                                <a href="#">
                                    <img src="./img/1.jpg" />
                                </a>
                            </span>
                        </p>
                        <div class="tab-info">
                            <div class="info-title">
                                <span>
                                    <a href="#">【官网价直降1100】Apple iPhone 8 Plus 256GB 银色 移动联通电信4G手机</a>
                                </span>
                            </div>
                            <p class="info-price">定金：¥100.00</p>
                        </div>
                    </div>

                </li>
            </ul>
        </div>
    </div>
</template>

<script>
export default {
    name:"TabBox"
}
</script>

<style scoped>
img:hover {
  transform-origin: center center;
  transform: scale(1.1);
  transition: all 600ms;
}
.tabbox {
  font-family: "微软雅黑";
}
.tabbox .tab {
  overflow: hidden;
  width: 312px;
}
.tabbox .tab p {
  margin-bottom: 0;
}
.tabbox .tab a {
  display: block;
  padding: 0 18px;
  float: left;
  text-decoration: none;
  font-size: 16px;
  color: #999;
}
.tabbox .tab a:hover {
  font-weight: 700;
  text-decoration: none;
}
.tabbox .tab a.on {
  color: #e60012;
  text-decoration: none;
}
.tabbox .tab a.on i {
  width: 35px;
  height: 35px;
  display: block;
  background: url("./img/bg0.png") -35px 0;
}
.tabbox .tab a i {
  width: 35px;
  height: 35px;
  display: block;
  background: url("./img/bg0.png");
  margin-left: 10px;
}
.tabbox .text {
  line-height: 28px;
}
.tabbox .content {
  overflow: hidden;
  padding: 10px;
}
.tabbox .content li {
  display: none;
  overflow: hidden;
  list-style: none;
}
.tabbox .img-item {
  border: 1px solid #e1251b;
  width: 269px;
  float: left;
  overflow: hidden;
  margin: 0 12px 10px;
  background: #fff;
}
.tabbox .img-item img {
  width: 200px;
  height: 200px;
}
.tabbox .img-item .tab-pic {
  width: 230px;
  height: 210px;
  overflow: hidden;
  display: table;
  position: relative;
  z-index: 1;
  text-align: center;
}
.tabbox .img-item .tab-pic span {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}
.tabbox .img-item .tab-info {
  background: #fafafa;
}
.tabbox .img-item .tab-info .info-title {
  height: 50px;
  line-height: 28px;
  overflow: hidden;
  margin: 0 auto;
  padding-left: 10px;
}
.tabbox .img-item .tab-info .info-title span a {
  color: #333;
  text-decoration: none;
}
.tabbox .img-item .tab-info .info-price {
  font-size: 20px;
  color: #e1251b;
  height: 35px;
  padding-left: 10px;
  display: block;
  line-height: 24px;
  margin: 10px auto 0;
}

</style>